﻿using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using SelfService.Model.Models;


namespace SelfService.ViewModel.SysPayVMs
{
    public partial class SysPayVm : BaseCRUDVM<SysPay>
    {
        [Display(Name = "患者")]
        public string PatientName { get; set; }

        public SysPayVm()
        {
            SetInclude(x => x.Patient);
            SetInclude(x => x.PayType);
        }

        protected override void InitVM()
        {
            PatientName = Entity.Patient.Name;
        }

        public override void DoAdd()
        {           
            base.DoAdd();
        }

        public override void DoEdit(bool updateAllFields = false)
        {
            base.DoEdit(updateAllFields);
        }

        public override void DoDelete()
        {
            base.DoDelete();
        }
    }
}
